#parse("/user/inc/top.htm")
<script language="javascript">
function doCheckForm(){
    if(EditForm.inputuser.value==""){
	   alert("姓名不能为空");
	   return false;
	}
	if(EditForm.content.value==""){
	   alert("留言不能为空");
	   return false;
	}
	return true;
}
function doReview(username){
	document.getElementById("content").value="回复"+username+"：";
	var esrc = document.getElementById("content");
    if(esrc==null){
		esrc=event.srcElement;
    }
    var rtextRange =esrc.createTextRange();
    rtextRange.moveStart('character',esrc.value.length);
    rtextRange.collapse(true); 
    rtextRange.select(); 
}
</script>
<div class="clearfix"></div>
<div class="MainPannel">
<!--Mainleft-->
<div id="Mainleft">
#parse("/user/inc/part-personInfo.htm")
<div class="clearfix"></div>
#parse("/user/inc/part-articalClassify.htm")
<div class="clearfix"></div>
#parse("/user/inc/part-photo.htm")
<div class="clearfix"></div>
#parse("/user/inc/part-photodir.htm")
<div class="clearfix"></div>
#parse("/user/inc/part-frindlink.htm")
<div class="clearfix"></div>
</div>
<!--Mainleft End-->
<!--Mainright-->
<div id="Mainright">
<div id="detail" class="text">留言板</div>


 #foreach( $info in $list)

<ul class="liuyanIndex" style="width:640px;">
	<li>留言人:$!info.inputuser 发表时间：$!CommUtil.formatDate('yyyy-MM-dd HH:mm:ss',$!info.inputtime)  </li>
	<li class="end" >$!HtmlUtil.getUBB2HTML($!HtmlUtil.escapeHTMLTag($!info.content))</li>
	#if($info.review)
		<div style=" border:1px solid #666666;margin-left:20px; margin-right:20px; background-color:#CCCCCC; font-size:12px; padding-left:5px; padding-top:5px;">博主回复:$!HtmlUtil.getUBB2HTML($!HtmlUtil.escapeHTMLTag($!info.review))</div>
	#else
		<a href="#" onClick="doReview('$!info.inputuser')">回复</a>
	#end
</ul>
#end
<div class="flipIndex">
共 $!rows 条信息 当前第 $!page/$!pages 页 每页 $!pageSize 条$!gotoPageHTML
</div>


<table cellspacing=0 cellpadding=0  bgcolor="white" align=center border=0>
              <form name="EditForm" onsubmit="javascript:return doCheckForm();" action="/blogMessage.do" method="post">
                <input type="hidden" name="parameter"  value="post" >
				<input type="hidden"  name="belonguser" value="$!HtmlUtil.escapeHTMLTag($!blog.username)" >
				<input type="hidden"  name="belongCid" value="$!HtmlUtil.escapeHTMLTag($!blog.cid)" >
				<input type="hidden"  name="parentId" value="$!HtmlUtil.escapeHTMLTag($!parentId)" >
                  <tr background="/images/dc_img13.gif">
                    <td height=25 colspan=2>&nbsp;<a name="reply"></a><span class="font06"><img src="/images/dc_img14.gif">我要留言</span></td>
                </tr>
                  <tr>
                    <td align=right width="10%" height=22><span  class=font05>* </span>姓&nbsp;&nbsp;&nbsp;&nbsp;名：</td>
                    <td width="76%"><input name=inputuser class=line01 id="inputuser" size=26 maxlength=50 value="$!currentUser.userName"></td>
                  </tr>
                  <tr>
                    <td align=right height=22 valign="top"><span class=font05>* </span>正&nbsp;&nbsp;&nbsp;&nbsp;文： </td>
                    <td height=22><textarea name=content class=line01 id="content" style="width: 70%; height: 120px"></textarea></td>
                  </tr>
                  <tr align="center">
                    <td colspan=2 height=30><input class=input type=submit value="提 交" name=Submit>
&nbsp;&nbsp;&nbsp;
                    <input class=input type=reset value="重 写" name=reset></td>
                  </tr>
              </form>
</table>
</div>
<!--Mainright End-->
#parse("/user/inc/part-reviewAll.htm")
<div class="clearfix"></div>
#parse("/user/inc/bottom.htm")
		<span style="display:none">
<script language="JavaScript" type="text/javascript" src="/blogUser.do?parameter=visitCount&cid=$blog.cid"></script>
</span>

</div>
</div>
</body>
</html>